package com.hs.shirodemo01.mapper;
import java.util.List;

import com.hs.shirodemo01.pojo.TbPermission;
import com.hs.shirodemo01.pojo.TbRole;
import org.apache.ibatis.annotations.Param;

import com.hs.shirodemo01.pojo.TbUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 郭敖
 * @since 2023-08-18
 */
@Mapper
public interface TbUserMapper extends BaseMapper<TbUser> {
    TbUser selectByUsername(@Param("username") String username);

    List<Integer> selectRoleIds(Integer id);

    List<TbPermission> selectAllPermission(Integer id);

    List<TbRole> selectAllRoles(Integer id);
}
